package com.zhuangwei.sell.dataobject;

import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单商品
 *
 * @author LeviCoder
 * @create 2019-02-28 22:41
 */
@Entity
@DynamicUpdate
@Data
public class OrderDetail {

    @Id
    private String detailId;

    private String orderId;

    private String productId;

    /*商品名称*/
    private String productName;

    /*当前价格,单位分*/
    private BigDecimal productPrice;

    /*小图*/
    private String productIcon;

    /*数量*/
    private Integer productQuantity;

    /*创建时间*/
    private Date createTime;

    /*修改时间*/
    private Date updateTime;

}
